<template>
   <el-card class="box-card">
      <h1>这里是组件二</h1>
      <h2>姓名：{{ FryStore.name }}</h2>
      <h2>年龄：{{ FryStore.age }}</h2>
      <el-button type="primary" round @click="FryStore.lessage">年龄down</el-button>
      <el-button type="primary" round @click="FryStore.addage">年龄up</el-button>
   </el-card>
</template>

<script setup lang="ts">
import { FryCountStore } from "../stores/FryCountStore";
const FryStore = FryCountStore()
</script>

<style scoped>
.box-card {
   margin-top: 150px;
   width: 500px;
   margin-left: 500px;
}
</style>